package chapter;

public class object_test01 {
    public static void main(String[] args) {
        User04 user1 = new User04();
//        User04 user2 = new User04("zyh");
//        User04 user3 = new User04("zyh","man");
    }
}
class User04 {
    User04() {
        this("zyh");
        //TODO this将参数传递过去
        System.out.println("User04");
    }
    User04(String name) {
        this(name,"man");
        System.out.println(name);
    }
    User04(String name, String sex) {
        System.out.println(name+sex);
    }
}